package com.netty.bfport.http.service;

import com.alibaba.fastjson.JSONObject;
import com.netty.bfport.http.domain.dto.UserLoginDTO;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author: zhaoyang05
 * @Data: 2022/3/29 21:37
 * @Description
 */
public interface UserService {

    /**
     * 注册
     *
     * @return*/
    JSONObject sign(UserLoginDTO userDTO, HttpServletRequest request);

    /**
     * 验证token
     *
     * @return*/
    JSONObject tokenAnalysis(String token);

    /**
     * 密码登录
     *
     * @return*/
    JSONObject loginPas(UserLoginDTO userDTO, HttpServletRequest request);
}
